#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/7/27 17:35
# @Author  : ldh
from basic.UIParent import UIParent
from commen.page.agx.AGXDigitalCardPage import AGXDigitalCardPage
from test.cases.agx.AGXLogin import AGXLogin
from commen.page.agx.AGXMyPage import AGXMyPage
from time import sleep

class AGXDigitalCard(UIParent):

    @classmethod
    def test_agxDigitalCard(cls):
        '''数字证照校验'''
        #判断是否登录
        AGXLogin.test_agxLoginByPwd()
        AGXMyPage.openMyPage()
        AGXDigitalCardPage.openDigitalPage()
        sleep(3)
        if AGXDigitalCardPage.getCards()==True:
            AGXDigitalCardPage.openDigitalCard()